package crivia.ecp.carry.html.div;

import java.util.ArrayList;
import java.util.List;

import crivia.ecp.carry.html.X;

public abstract class AbstractList extends X {
	
	protected List<ListItem> items = new ArrayList<ListItem>();
	public List<ListItem> getItems() {
		return items;
	}
	public void setItems(List<ListItem> items) {
		this.items = items;
	}
	public void addItem(ListItem item) {
		items.add(item);
	}
	
	@Override
	protected String innerHTML() {
		StringBuilder tStr = new StringBuilder();
		for (ListItem i : items){
			tStr.append(i);
		}
		return tStr.toString();
	}

}
